<!--
 * @Descripttion : 
 * @Autor        : Lilong
 * @Date         : 2022-09-30 14:15:52
 * @LastEditTime : 2022-09-30 14:17:02
 * @FilePath     : \Class与Style绑定\Class组件语法\第三种\vue3\todo-item.vue
-->
// src/components/todo-item.vue

//将被渲染成 <p class="baz">Hi!</p><span>This is a child component</span>

<template>
    <p :class="className.class">Hi!</p>
    <span>This is a child component</span>
</template>

<script setup>
import {useAttrs} from 'vue'
const className = useAttrs()
</script>